#root{
  height: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  display: flex;
}

.app{
  height: 100%;
}


.container{
  display: flex;
  height: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
}

.notes {
  display: flex;
  height: 100%;
}

.notes * {
  font-family: sans-serif;
}

.notes__sidebar {
  border-right: 2px solid #dddddd;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 1em;
  width: 300px;
}

.notes__add {
  background: #009578;
  border: none;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 1em;
  padding: 0.75em 0;
  width: 100%;
}

.notes__add:hover {
  background: #00af8c;
}

.notes__list-item {
  cursor: pointer;
  border: 2px dotted;
  margin: 2px;
  border-radius: 10px;
  position: relative;
  padding: 10px 0;
}

.notes__list-item--selected {
  background: #eeeeee;
  border-radius: 7px;
  font-weight: bold;
  border-radius: 10px;
}

.notes__small-title,
.notes__small-updated {
  padding: 10px;
}

.notes__small-title {
  font-size: 1.2em;
}

.notes__small-body {
  padding: 0 10px;
}

.notes__small-updated {
  color: #aaaaaa;
  font-style: italic;
  text-align: right;
}

.notes__delete-button{
  position: absolute;
  top: 2px;
  right: 15px;
  display: inline-block;
  color: red;
}

.notes__preview_container{
  border-bottom: 2px solid #ddd;
}

.notes__title{
  border-bottom: 2px solid #ddd;
  padding: 0 0 0 30px;
}

.notes__preview {
  display: flex;
  flex-direction: column;
  padding: 2em 3em;
  flex-grow: 1;
}

.notes__title,
.notes__body {
  border: none;
  outline: none;
  width: 100%;
}

.notes__title {
  font-size: 3em;
  font-weight: bold;
  line-height: 100px;
}

.notes__body {
  flex-grow: 1;
  font-size: 1.2em;
  line-height: 1.5;
  margin: 30px 0 0 30px;
  resize: none;
}

.notes__export {
  display: block;
  margin: 10px 0;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
}

.notes__export:hover {
  background-color: #45a049;
}

#import-notes {
  display: none;
}

.notes__export, .notes__import {
  display: block;
  margin: 10px 0;
  padding: 10px;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
}

.notes__export {
  background-color: #4CAF50;
}

.notes__export:hover {
  background-color: #45a049;
}

.notes__import {
  background-color: #1387f4;
}

.notes__import:hover {
  background-color: #0c6fd2;
}

.operation__container{
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
}


/* 模态框的背景遮罩样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; 
}

/* 模态框的内容样式 */
.modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
  z-index: 1001; 
}

/* 模态框内按钮的样式 */
.modal button {
  margin: 10px 5px;
  padding: 10px 20px;
  background-color: #1387f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.modal button:hover {
  background-color: #0c6fd2;
}
